import {Checkout} from "@/types/checkout.ts";

export interface FindBy {
    id: number
}

export interface PageInfo {
    page: number
    pageSize: number
}

export interface SearchWithPage<T> {
    data: T
    pageInfo: PageInfo
}

export const DefaultPageInfo: PageInfo = {
    page: 1,
    pageSize: 10
}

export interface PageResult<T> {
    total: number
    items: T[]
}

